<template>
  <h1 >姓名：{{person.name}}</h1>
  <h2>年龄：{{person.age}}</h2>
</template>

<script>
import { reactive } from '@vue/reactivity'
    
    export default {
        name: "Demo",
        props:['shcool'],
        setup(props,context){
            console.log('setup',props,context);
        //数据
        let person =reactive({
            name:'张三',
            age:18
        })
        
        //返回一个对象
        return {
            person
        }
        }
    }
</script>

<style>

</style>